<!DOCTYPE html>
<html lang="en-gb" dir="ltr">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Off-canvas - UIkit tests</title>
        <script src="../dist/js/uikit.js"></script>
        <script src="js/test.js"></script>
    </head>

    <body>
        <div class="uk-offcanvas-content">
            <div class="uk-container">

                <h1>Off-canvas</h1>

                <div class="uk-grid-small uk-child-width-auto uk-flex-between" uk-grid>
                    <div uk-margin>

                        <a class="uk-button uk-button-default" href="#offcanvas-slide" uk-toggle>Slide</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-reveal" uk-toggle>Reveal</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-push" uk-toggle>Push</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-none" uk-toggle>None</a>

                    </div>
                    <div uk-margin>

                        <a class="uk-button uk-button-default" href="#offcanvas-flip-slide" uk-toggle>Slide</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-flip-reveal" uk-toggle>Reveal</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-flip-push" uk-toggle>Push</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-flip-none" uk-toggle>None</a>

                    </div>
                </div>

                <h2>Overlay</h2>

                <div class="uk-grid-small uk-child-width-auto uk-flex-between" uk-grid>
                    <div uk-margin>

                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-slide" uk-toggle>Slide</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-reveal" uk-toggle>Reveal</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-push" uk-toggle>Push</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-none" uk-toggle>None</a>

                    </div>
                    <div uk-margin>

                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-flip-slide" uk-toggle>Slide</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-flip-reveal" uk-toggle>Reveal</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-flip-push" uk-toggle>Push</a>
                        <a class="uk-button uk-button-default" href="#offcanvas-overlay-flip-none" uk-toggle>None</a>

                    </div>
                </div>

                <h2>More</h2>

                <p uk-margin>
                    <button class="uk-button uk-button-default" type="button" uk-toggle="target: #scrollbar">Toggle scrollbar</button>
                    <button class="uk-button uk-button-primary" type="button" uk-toggle="target: #offcanvas-slide">Button Test</button>
                    <a id="js-toggle" class="uk-button uk-button-secondary">Via Code</a>
                </p>

                <div id="scrollbar">

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

                </div>

                <h2 id="js-options">Javascript Options</h2>

                <div class="uk-overflow-auto">
                    <table class="uk-table uk-table-striped">
                        <thead>
                            <tr>
                                <th>Option</th>
                                <th>Value</th>
                                <th>Default</th>
                                <th>Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><code>mode</code></td>
                                <td>slide|reveal|push|none</td>
                                <td>slide</td>
                                <td>Offcanvas open mode.</td>
                            </tr>
                            <tr>
                                <td><code>flip</code></td>
                                <td>Boolean</td>
                                <td>false</td>
                                <td>Flip Offcanvas to right side.</td>
                            </tr>
                            <tr>
                                <td><code>overlay</code></td>
                                <td>Boolean</td>
                                <td>false</td>
                                <td>Show Offcanvas together with an overlay.</td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div id="offcanvas-slide" uk-offcanvas>
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-reveal" uk-offcanvas="mode: reveal">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-push" uk-offcanvas="mode: push">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-none" uk-offcanvas="mode: none">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-flip-slide" uk-offcanvas="flip: true">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-flip-reveal" uk-offcanvas="mode: reveal; flip: true">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-flip-push" uk-offcanvas="mode: push; flip: true">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-flip-none" uk-offcanvas="mode: none; flip: true">
                    <div class="uk-offcanvas-bar uk-flex uk-flex-column uk-text-center">

                        <button class="uk-offcanvas-close uk-close-large" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical uk-nav-parent-icon" uk-nav>
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a>
                                        <ul>
                                            <li><a href="#">Sub item</a></li>
                                            <li><a href="#">Sub item</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#js-options">Item</a></li>
                            <li><a href="#">Item</a></li>
                        </ul>

                        <div>
                            <div class="uk-grid-small uk-child-width-auto uk-flex-inline" uk-grid>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: facebook"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: twitter"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: mail"></a>
                                </div>
                                <div>
                                    <a class="uk-icon-button" href="#" uk-icon="icon: receiver"></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div id="offcanvas-overlay-slide" uk-offcanvas="overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-reveal" uk-offcanvas="mode: reveal; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-push" uk-offcanvas="mode: push; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-none" uk-offcanvas="mode: none; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-flip-slide" uk-offcanvas="flip: true; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-flip-reveal" uk-offcanvas="mode: reveal; flip: true; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-flip-push" uk-offcanvas="mode: push; flip: true; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="offcanvas-overlay-flip-none" uk-offcanvas="mode: none; flip: true; overlay: true">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

                <div id="js-offcanvas-toggle" class="uk-offcanvas">
                    <div class="uk-offcanvas-bar">

                        <button class="uk-offcanvas-close" type="button" uk-close></button>

                        <ul class="uk-nav uk-nav-default">
                            <li class="uk-active"><a href="#">Active</a></li>
                            <li class="uk-parent">
                                <a href="#">Parent</a>
                                <ul class="uk-nav-sub">
                                    <li><a href="#">Sub item</a></li>
                                    <li><a href="#">Sub item</a></li>
                                </ul>
                            </li>
                            <li class="uk-nav-header">Header</li>
                            <li><a href="#js-options"><span class="uk-margin-small-right" uk-icon="icon: table"></span> Item</a></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: thumbnails"></span> Item</a></li>
                            <li class="uk-nav-divider"></li>
                            <li><a href="#"><span class="uk-margin-small-right" uk-icon="icon: trash"></span> Item</a></li>
                        </ul>

                        <h3>Title</h3>

                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

                    </div>
                </div>

            </div>
        </div>
        <script>

            var util = UIkit.util;

            setTimeout(function () {
                util.prepend(util.$('.uk-offcanvas-content'), util.$('div'));
            }, 200);

            util.on(util.$('#js-toggle'), 'click', function (e) {

                e.preventDefault();
                UIkit.offcanvas('#js-offcanvas-toggle').toggle();

            });

        </script>

    </body>
</html>
